/**
 * For more configuration, please refer to https://angular.io/guide/build#proxying-to-a-backend-server
 *
 * 更多配置描述请参考 https://angular.cn/guide/build#proxying-to-a-backend-server
 *
 * Note: The proxy is only valid for real requests, Mock does not actually generate requests, so the priority of Mock will be higher than the proxy
 */
module.exports = {
	'/api/tjpn4-handle-tally': {
		target: 'http://localhost:8097',
		secure: false,
		logLevel: 'debug',
		changeOrigin: true,
		pathRewrite: {
			'^/api/tjpn4-handle-tally': '/',
		},
	},
	// '/api/tjpn4-transport': {
	// 	target: 'http://localhost:8095',
	// 	secure: false,
	// 	logLevel: 'debug',
	// 	changeOrigin: true,
	// 	pathRewrite: {
	// 		'^/api/tjpn4-transport':'/',
	// 	},
	// },
	'/api': {
		target: 'http://10.10.21.252',
		secure: false,
		logLevel: 'debug',
		changeOrigin: true,
	},
	'/api-prod': {
		target: 'http://10.10.21.252',
		secure: false,
		logLevel: 'debug',
		changeOrigin: true,
		pathRewrite: {
			'^/api-prod': '/api',
		},
	},
};
